#ifndef _COMMON_H_
#define _COMMON_H_

#ifndef ASSERT_
    #if defined(_NEXUS_DEBUG)
        #define ASSERT_(cond__) _ASSERT(cond__)
    #else
        #define ASSERT_(cond__)
    #endif
#endif

#define CheckConditionBreak(cond__) \
    if (! (cond__)) \
    { \
    break; \
    }

#define CheckConditionXR(cond__, x__) \
    if (! (cond__)) \
    { \
    return x__; \
    }

#define CheckConditionXR_(cond__, x__) \
    if (! (cond__)) \
    { \
    ASSERT_(0); \
    return x__; \
    }

////////////////////////////////////////////////////////////////////////////////
// Thread block size
//#define BLOCK_SIZE_X 32
//#define BLOCK_SIZE_Y 32

#define VEC_LENGTH 64
#define BLOCK_X 16
#define BLOCK_Y VEC_LENGTH / BLOCK_X
#define BX 16
#define BY 16

#define _float float

#endif 
